<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$seo['title']}</title>
<meta name="keywords" content="{$seo['keywords']}" />
<meta name="description" content="{$seo['description']}" />
<link rel="shortcut icon" type="image/ico" href="{$pe['host_root']}favicon.ico">
<link type="text/css" rel="stylesheet" href="{$pe['host_tpl']}css/style.css" />
<script type="text/javascript" src="{$pe['host_root']}include/js/jquery.js"></script>
<script type="text/javascript" src="{$pe['host_root']}include/js/global.js"></script>
</head>
<body>
<div class="pagetop">
	<div class="quick_menu">
		<p>
		<!--{if(pe_login('user')):}-->
		<span class="fl">您好，<span class="cred">{$_s_user_name}</span>， {$cache_setting['web_title']['setting_value']}！</span>
		<span class="fr">
		<a href="{$pe['host_root']}index.php?mod=user&act=order" title="会员中心">会员中心</a>
		<a href="{$pe['host_root']}index.php?mod=order&act=add" title="购物车" class="gwc">购物车 <span class="cred">{$cart_num}</span> 件</a>
		<!--{if($cache_setting['web_weibo']['setting_value']):}-->
		<a href="{$cache_setting['web_weibo']['setting_value']}" title="官方微博" target="_blank">官方微博</a>
		<!--{else:}-->
		<a href="{pe_url('order-list')}" title="订单查询">订单查询</a>
		<a href="{pe_url('user-logout')}" title="退出" style="border:0">退出</a>
		</span>
		<!--{endif;}-->
		<!--{else:}-->
		<span class="fl">您好，欢迎来到{$cache_setting['web_title']['setting_value']}！</span>
		<span class="fr">
		<a href="{pe_url('user-login',pe_fromto())}" title="登录">登录</a>
		<a href="{pe_url('user-register',pe_fromto())}" title="注册">注册</a>
		<!--{if($cache_setting['web_weibo']['setting_value']):}-->
		<a href="{$cache_setting['web_weibo']['setting_value']}" title="官方微博" target="_blank">官方微博</a>
		<!--{endif;}-->
		<a href="{$pe['host_root']}index.php?mod=order&act=add" title="购物车" class="gwc">购物车 <span class="cred">{$cart_num}</span> 件</a>
		<a href="{pe_url('order-list')}" title="订单查询" style="border:0">订单查询</a>
		</span>
		<!--{endif;}-->
		</p>
	</div>
	<div class="width980">
		<div class="header">
			<div class="fl logo"><a href="{$pe['host_root']}" title="{$cache_setting['web_name']['setting_value']}"><img src="{pe_thumb($cache_setting['web_logo']['setting_value'])}" alt="{$cache_setting['web_name']['setting_value']}" /></a></div>
			<p class="top_tel fr">咨询热线：{$cache_setting['web_phone']['setting_value']}</p>
			<div class="sear fr">				
				<form method="get" action="{pe_url('product-list')}">
				<div class="inputbg fl"><input type="text" name="keyword" value="{htmlspecialchars($_g_keyword)}" class="fl searinput c666" /></div>
				<input type="submit" class="fl sear_btn" onclick="this.form.submit();return false;" value=" " />
				</form>
			</div>
		</div>
	</div>
	<div class="clear"></div>
	<div class="nav">
		<div class="width980">
		<ul>
			<li class="sel"><a href="{$pe['host_root']}" title="首页">首页</a></li>
			<!--{foreach((array)$cache_menu as $v):}-->
			<!--{if($v['menu_type'] == 'sys'):}-->
			<li><a href="{pe_url($v['menu_url'])}" title="{$v['menu_name']}">{$v['menu_name']}</a></li>
			<!--{else:}-->
			<li><a href="{$v['menu_url']}" title="{$v['menu_name']}" target="_blank">{$v['menu_name']}</a></li>
			<!--{endif;}-->
			<!--{endforeach;}-->
		</ul>
		</div>
	</div>
	<div class="clear"></div>
</div>
<!--{if($mod=='index' && is_array($cache_ad['index_header'])):}-->
<!--{foreach($cache_ad['index_header'] as $v):}-->
<div class="ad980">
<!--{if($v['ad_url']):}-->
<a href="{$v['ad_url']}" target="_blank"><img src="{pe_thumb($v['ad_logo'])}" /></a>
<!--{else:}-->
<img src="{pe_thumb($v['ad_logo'])}" />
<!--{endif;}-->
</div>
<!--{endforeach;}-->
<!--{endif;}-->
<!--{if(is_array($cache_ad['header'])):}-->
<!--{foreach($cache_ad['header'] as $v):}-->
<div class="ad980">
<!--{if($v['ad_url']):}-->
<a href="{$v['ad_url']}" target="_blank"><img src="{pe_thumb($v['ad_logo'])}" /></a>
<!--{else:}-->
<img src="{pe_thumb($v['ad_logo'])}" />
<!--{endif;}-->
</div>
<!--{endforeach;}-->
<!--{endif;}-->